package com.cn.sl.server.common.enumerate

import com.fasterxml.jackson.annotation.JsonCreator

enum class QueryMode(val alias: String) {
    SIMPLE("简单模式"),
    FULL("详细模式");

    companion object {
        @JsonCreator
        fun create(code: String): QueryMode? {
            for (item in entries) {
                if (item.toString() == code) {
                    return item
                }
            }
            return null
        }
    }
}